package com.example.esskill.service;

import com.example.esskill.bean.Goods;
import org.elasticsearch.rest.RestStatus;

import java.io.IOException;

/**
 * ClassName: DocumentTestService <br/>
 * Description: <br/>
 * date: 2024/2/4 14:15<br/>
 *
 * @author LXC<br />
 * @since JDK 1.8
 */
public interface DocumentTestService {
    public RestStatus addDocument(String indexName, String type, Goods goods) throws IOException;

    public Goods getDocument(String indexName, String type, String id) throws Exception;

    public RestStatus updateDocument(String indexName, String type, Goods goods) throws IOException;

    public RestStatus deleteDocument(String indexName, String type, String id) throws IOException;

    public RestStatus batchImportGoodsData() throws IOException;
}
